import request from "@/utils/request";

export default {
  //获取分页列表数据 //GET /admin/product/baseTrademark/{page}/{limit}
  getPageTrademark(page, limit) {
    return request.get(`/admin/product/baseTrademark/${page}/${limit}`)
  },

  //获取所有商品列表
  //GET /admin/product/baseTrademark/getTrademarkList
  getTrademarkList() {
    return request.get('/admin/product/baseTrademark/getTrademarkList')
  },
  //新增BaseTrademark   POST /admin/product/baseTrademark/save
//PUT /admin/product/baseTrademark/update 修改BaseTrademark
  addOrUpdateTrademark(trademark) {
    if (trademark.id) {
      return request.put('/admin/product/baseTrademark/update', trademark)
    } else {
      return request.post('/admin/product/baseTrademark/save', trademark)
    }
  },

//    /admin/product/baseTrademark/remove/{id} 删除BaseTrademark
  delete(id) {
    return request.delete(`/admin/product/baseTrademark/remove/${id}`)
  }


}
